<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<s:form action="Consulta!search" namespace="/model">
   <s:select name="entitySearchFilter.veterinario.id" headerKey="0" listKey="id"
            listValue="nome" list="%{veterinarios}" label = "Veterinarios"/>
    <sx:datetimepicker label="Data da Consulta" name="entity.dataConsulta"/>
    <s:textfield name="entitySearchFilter.animal.nome" label="Nome do Animal"/>
    <s:textfield name="entitySearchFilter.valorConsulta" label="Valor da consulta" size="6" maxlength="5"/>
    <s:textfield name="entitySearchFilter.horaConsulta" label="Hora da consulta" size="5" maxlength="5"/>
    <s:submit value="Cadastrar"/>
</s:form>